{% extends "base.html" %}

{% block content %}
<div class="search-container">
    <h2>搜索指定帖子</h2>
    <form method="POST" action="{{ url_for('search_post') }}">
        <div class="form-group">
            <label for="post_id">输入帖子ID：</label>
            <input type="number" id="post_id" name="post_id"
                   min="1" required class="form-control">
        </div>
        <button type="submit" class="btn btn-primary">搜索</button>
    </form>

    {% if error %}
    <div class="alert alert-danger mt-3">{{ error }}</div>
    {% endif %}
</div>
{% endblock %}